<script type="text/javascript">
	function pic_upload_success(file, data) {
		var json = $.parseJSON(data)

		$(this).bjuiajax('ajaxDone', json)
		if (json[BJUI.keys.statusCode] == BJUI.statusCode.ok) {
			$('#j_custom_pic').val(json.filename).trigger('validate')
			$('#j_custom_span_pic').html(
					'<img src="'+ json.filename +'" width="100" />')
		}
	}
	function do_OK(json, $form) {
		console.log(json)
		console.log($form)
	}
	//护照有效日期  = 签发日期 + 10年
	$('#j_custom_issuedate').on('afterchange.bjui.datepicker',
			function(e, data) {
				var pattern = 'yyyy-MM-dd'
				var start = end = data.value

				end.setFullYear(start.getFullYear() + 10)
				end.setDate(start.getDate() - 1)

				$('#j_custom_indate').val(end.formatDate(pattern))
			})
</script>


<div class="bjui-pageContent" style="margin:0 auto;">
	<form action="/menu/saveOrUpdate" style="margin: 0 auto;"
		data-toggle="validate">
		<input type="hidden" name="menu.id" value="${menu.id!}">
    <div style="margin:0 auto;widht:50%;text-algin:center">
		<div style="padding-bottom: 10px;">
			<lable class="x85"> 菜单名称:</lable>
			<input type="text" name="menu.name" data-rule="required"
				placeholder="菜单名称" class="form-control">
		</div>
		<div style="padding-bottom: 10px;">
			<lable class="x85">菜单路径:</lable>
			<input type="text" name="menu.url" data-rule="required"
				placeholder="菜单路径" class="form-control">
		</div>

		<div style="padding-bottom: 10px;">
			<lable class="x85">&nbsp;&nbsp;&nbsp;父菜单:</lable>
			<select type="text" name="menu.pmenu" placeholder="父菜单"
				class="form-control" data-toggle="selectpicker">
				<option>1</option>
				<option>2</option>
				</select>
		</div>
		<div style="padding-bottom: 10px;">
			<lable class="x85">菜单等级:</lable>
			<input type="text" name="menu.menuEvel" data-rule="required"
				placeholder="菜单名称" class="form-control">

		</div>
		<div style="padding-bottom: 10px;">
			<lable class="x85">菜单等级:</lable>
			<input type="text" name="menu.orderno" data-rule=""
				placeholder="菜单名称" class="form-control">

		</div>

</div>

	</form>

</div>
<div class="bjui-pageFooter">
	<ul>
		<li><button type="button" class="btn-close" data-icon="close">取消</button></li>
		<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	</ul>
</div>